package com.ruoyi.business.dbopt.utils;

/**
 * 计算执行耗时
 */
public class TimeRecorder {
    private long startTime;
    private long endTime;

    public TimeRecorder(){
    	startTime = System.currentTimeMillis();
    }

    public long getDuration() {
    	endTime = System.currentTimeMillis();
        return endTime - startTime;
    }


}
